#!/usr/bin/env python
import configparser
import json
g1='/home/python/projects/py369/mysql.ini'
g2=configparser.ConfigParser()
g3=g2.read(g1)
g4=[s for s,so in g2.items()]
g5=[g2.items(s) for s,so in g2.items()]
g6={g4[0]:g5[0],g4[1]:g5[1],g4[2]:g5[2]}
with open('/home/python/projects/py369/mysql.json','wt') as f:
    json.dump(g6,f)



# 做得不错

